<!DOCTYPE html>
<html>
    <head>
        <title><g:layoutTitle default="Grails" /></title>
        <link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}" />
        <link rel="shortcut icon" href="${resource(dir:'images',file:'favicon.ico')}" type="image/x-icon" />
        <g:layoutHead />
        <g:javascript library="application" />
        <resource:autoComplete skin="default" />
        <g:javascript library="jquery" plugin="jquery"/>
    </head>
    <body>
    	<div class="logo" >
			<img src="${resource(dir:'images',file:'mileena_log.jpg')}" alt="login" />
			<g:loginToggle />
		</div>
    
        <div id="spinner" class="spinner" style="display:none;">
            <img src="${resource(dir:'images',file:'spinner.gif')}" alt="${message(code:'spinner.alt',default:'Loading...')}" />
        </div>
        <div id="grailsLogo"><a href="http://www.juancancela.com.ar"><img src="${resource(dir:'images',file:'mileena.jpg')}" alt="Grails" border="0" /></a></div>
        <g:layoutBody />

		Search for places        
        <g:form>
    		<!-- onItemSelect action  -->
    		<richui:autoComplete name="searchplace" action="${createLinkTo('dir': 'appPlace/searchAJAX')}" onItemSelect="document.location.href = \'${createLinkTo(dir: 'appPlace/show')}/\' + id;" />
		</g:form>
    </body>
</html>